<?php defined('_JEXEC') or die('Restricted access');


?>
<form action="index.php" method="post" name="adminForm">
<div id="editcell">
	<table class="adminlist">
	<thead>
		<tr>
			<th width="30">
			<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count( $this->APIcurl ); ?>);" />			</th>
	        <th width="30%" class="20%">Nama   </th>
	        <th width="title">URL</th>
	        <th width="title">API Key </th>
        </tr>
	</thead>	
	<?php
	
	//print_r($this->APIcurl);
	$k = 0;
	for ($i=1, $n=count( $this->APIcurl ); $i < $n; $i=$i+2)
	{

		$checked 	= JHTML::_('grid.id', $i, $this->APIcurl[$i][id_api] );
				
		?>
		<tr class="<?php echo "row $k"; ?>">
			<td align="center" valign="top">
				<?php echo $checked; ?>			</td>
			<td align="left" valign="top">
				<?php echo $this->APIcurl[$i][nama]; ?></td>	        
	        <td align="left" valign="top">
				<?php echo $this->APIcurl[$i][url]; ?></td>
	        <td align="left" valign="top">
				<?php echo $this->APIcurl[$i][api]; ?></td>
        </tr>
		<?php
		$k = 1 - $k;
	}
	?>
		<tr>
			<td colspan="5">
				<?php //echo $this->pageNav->getListFooter(); ?>			</td>
		</tr>	
	</table>
	
</div>

<input type="hidden" name="option" value="com_nv" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="view" value="apikey" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="controller" value="apikey" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
